// pages/lottery/lottery.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    lotteryNum: 1,
    x: 0,
    y: 0,
    popShow: false,
    popTitle: '中奖啦！',
    popContent: '恭喜您中奖，获得第三届艺术与设计创新未来教育博览会门票一张。'
  },

  popClose: function (e) {
    this.setData({
      popShow: false
    })
  },

  lottery: function (e) {
    this.setData({
      popShow: true
    })
  },

  linkToMy: function (e) {
    wx.navigateTo({
      url: '../myLottery/myLottery',
    })
  },

  onLoad: function (options) {

  },

  onReady: function () {
    let windowWidth = wx.getSystemInfoSync().windowWidth;
    let windowHeight = wx.getSystemInfoSync().windowHeight;
    console.log(windowHeight,windowWidth)
    this.setData({
      x: windowWidth,
      y: windowHeight
    })
  },
})